package com.gxa.common.utils;


import com.gxa.common.commons.R;

public class RUtils {
    public static R success(){
        R r = new R();
        r.setCode(200);
        r.setMsg("success");
        return r;
    }
    public static R fail(){
        R r = new R();
        r.setCode(500);
        r.setMsg("fail");
        return r;
    }
    public static< E > R success(E e){
        R r = new R();
        r.setCode(200);
        r.setMsg("success");
        r.setData(e);
        return r;
    }
}
